Clos Solutions to Binary Methods
نویسنده
چکیده
Implementing binary methods in traditional object-oriented languages is difficult: numerous problems arise, such as typing (covariance vs. contravariance of the arguments), polymorphism on multiple arguments (lack of multi-methods) etc. The purpose of this paper is to demonstrate how those problems are either solved, or nonexistent in the Common Lisp Object System (Clos). Several solutions for implementing binary methods in Clos are proposed. They mainly consist in re-programming a binary method specific object system through the Clos meta-object protocol (mop).
منابع مشابه
Binary Methods Programming: the Clos Perspective
Implementing binary methods in traditional object-oriented languages is difficult: numerous problems arise regarding the relationship between types and classes in the context of inheritance, or the need for privileged access to the internal representation of objects. Most of these problems occur in the context of statically typed languages that lack multi-methods (polymorphism on multiple argum...
متن کاملAsymptotic Analysis of Binary Gas Mixture Separation by Nanometric Tubular Ceramic Membranes: Cocurrent and Countercurrent Flow Patterns
Analytical gas-permeation models for predicting the separation process across membranes (exit compositions and area requirement) constitutes an important and necessary step in understanding the overall performance of membrane modules. But, the exact (numerical) solution methods suffer from the complexity of the solution. Therefore, solutions of nonlinear ordinary differential equations th...
متن کاملcomparison between to versions of the SAFT EOS in the study of PVT and VLE phase behavior of pure polymer melts and binary polymer solutions
متن کامل
A Comparison Between GA and PSO Algorithms in Training ANN to Predict the Refractive Index of Binary Liquid Solutions
A total of 1099 data points consisting of alcohol-alcohol, alcohol-alkane, alkane-alkane, alcohol-amine and acid-acid binary solutions were collected from scientific literature to develop an appropriate artificial neural network (ANN) model. Temperature, molecular weight of the pure components, mole fraction of one component and the structural groups of the components were used as input paramet...
متن کاملSolid-Connection Rearrangeability for 3-Stage Clos Networks in the Multirate Environment
In this paper, we study one aspect of the rearrangeably nonblocking (RNB) operation of generalized, multirate, 3-stage Clos switching networks. In order to achieve RNB operation in a Clos network, we must find a way to route any given traffic load through the middle-stage switches, possibly rearranging existing connections. The model under consideration assumes that a single connection (or call...
متن کامل